cask "thunderbird" do
  version "145.0"

  language "af" do
    sha256 "218740500fff8de044d9b52bd404bab3e663cf476ea62e6f907899f8db64cfe3"
    "af"
  end
  language "ar" do
    sha256 "0996bf31ce38b6536139aac9678343b56c1dd6bf3da99144a10387fdcf7b6d28"
    "ar"
  end
  language "be" do
    sha256 "0c93b0e21983da273ee44051bae0039c8beadb56fd54bbf1432d97490500be23"
    "be"
  end
  language "bg" do
    sha256 "31a6fdbd5004fe02fce836c32286ce1cd5c1f1b35f55492b400306c1eeb8cf93"
    "bg"
  end
  language "ca" do
    sha256 "11baba05f119dbdfa287eda05bfdb259627747973a82c067f0c7da5aa71e2a8a"
    "ca"
  end
  language "cs" do
    sha256 "95f9481de8ef033983a793f663678254c1305d31b70f4f997414b03617662448"
    "cs"
  end
  language "cy" do
    sha256 "564b1e7318bf7e39f5d2a22aecbd6df23d3e7e84f63e03370feddd764d106bbc"
    "cy"
  end
  language "da" do
    sha256 "2a50bc582dd3c1b24e05a9612b6e406610855bbafe84ada56435ad7763c56c84"
    "da"
  end
  language "de" do
    sha256 "7d6a509ab811600501a158043e9d873d5dddbc103b21c2e2f627f09e7581062e"
    "de"
  end
  language "el" do
    sha256 "0284c12030c20f78400b565dea4b8de171c42aa0800fbc6ef043ba06f50bb461"
    "el"
  end
  language "en-CA" do
    sha256 "cba2f7b64013edd00f3bfa54ebb5da01825c8b978cae27e9735dbbec747f36f1"
    "en-CA"
  end
  language "en-GB" do
    sha256 "57b3e6c751c34158a6c0836ad0e34a50530b02cf5fffda5b109027fcffedd607"
    "en-GB"
  end
  language "en", default: true do
    sha256 "ba5c603c490dbb9e9d50674d31395cff053ff4aa761a8ec40635c211a987150a"
    "en-US"
  end
  language "es-ES" do
    sha256 "a5cf75aa2f84bd50a0449eea475f12e5af5fba9ee73de3856b5ffa7d4cc3c55b"
    "es-ES"
  end
  language "es-MX" do
    sha256 "029ae6aaf571058ca8d2c61b120455d1d60bdb66a080af51e6f45c981fb55064"
    "es-MX"
  end
  language "et" do
    sha256 "e02c701e271cd1bf270822800b36c09aabd8b1b617c84e381e8bf4a9939b2044"
    "et"
  end
  language "fi" do
    sha256 "c675ad131dc33814a305d419e6f51ea6762b1b602b9646546bb4d35b4c6c4e93"
    "fi"
  end
  language "fr" do
    sha256 "3f62826cfd7f5c67e3a1d9c38e460eb8540bc7694237d99fceb8a0cf8286f625"
    "fr"
  end
  language "fy" do
    sha256 "0407f45afa0e076ba77b8e8b31b340a6698242dd85ca97a173d93b76c5b1cf74"
    "fy-NL"
  end
  language "ga" do
    sha256 "465b5a3f8d38e156625ad80204bca55e6afcad07a909a65f677f92cac75d303f"
    "ga-IE"
  end
  language "gd" do
    sha256 "987d2e88f8a1f8d7ba2d787acd83903708a7543f775a46b096abccc749bf502d"
    "gd"
  end
  language "gl" do
    sha256 "9de6211bd3dff4c802f15fbea85f0d818b09445c9648544229be03b440b0719f"
    "gl"
  end
  language "he" do
    sha256 "fd6c5e8a1f9dd5b4a276779aa11bc689c8d67f2685a4a8d5beb4dc9571bf9716"
    "he"
  end
  language "hr" do
    sha256 "316f0783855e626675d36ddd04673c16a8441b9865f3b8fa6ef201ffd01781d5"
    "hr"
  end
  language "hu" do
    sha256 "f9202b069c9cd75583b989c0fc51979d153a635df5072c0b741a3d3aec7ce0f0"
    "hu"
  end
  language "hy" do
    sha256 "e0f1d136ae69b2bbd41427ee3875603802a66794d4add525db2676c9c329b5e2"
    "hy-AM"
  end
  language "is" do
    sha256 "a7200b09a0e3e810efaa7356e235b12525ac6236a0cdb1c812894d06d2cd0fb4"
    "is"
  end
  language "it" do
    sha256 "8a97f874a71d18a3809972540f1800738de44ba3fd28b5d8b1d16a463ebd48bb"
    "it"
  end
  language "ja" do
    sha256 "2ea3a11155153ae361ec937c73df31ff09025544b404f5c8a812f03958d1b6ef"
    "ja-JP-mac"
  end
  language "ka" do
    sha256 "0529e09df7bce02b74215d85fc92e22fad29d8c3d4dec6f0297ce134dd4201a3"
    "ka"
  end
  language "ko" do
    sha256 "7eb48e2b004f94869377bccea12617fb128ca8062fb8f9b723e4816bb62aa8bb"
    "ko"
  end
  language "lt" do
    sha256 "585bb98983b1513f132e7953ca1874538ad7f9a7a026e800837bf5da23322f6d"
    "lt"
  end
  language "lv" do
    sha256 "81c9eec1b88d4619f3a9cf0b3bd12da100c361e1ddec28ec9e5a01c499d70af2"
    "lv"
  end
  language "ms" do
    sha256 "04d3bfce5dc99d2ab5ed0a93c347e39d18e0fbf3ae38cd8fce2063bcead3ff68"
    "ms"
  end
  language "nb" do
    sha256 "b5b1a9ae52ecc78153ab6667cedd488fa4494fbc103fdce9cf3f848e5bf19829"
    "nb-NO"
  end
  language "nl" do
    sha256 "b5ff26f7388620e168aac71867f582ed249fb8235d757da8dcec3d35cadc5a59"
    "nl"
  end
  language "pa-IN" do
    sha256 "988e7acef6cbdac9cb77996f6713d41ecaed7e4f388aca6b3525c3f8700cad6d"
    "pa-IN"
  end
  language "pl" do
    sha256 "89cc7bf976efccde5f67bdb38bd647ce7ce3f82ccb45d4f05bba8abf3357bd77"
    "pl"
  end
  language "pt" do
    sha256 "eec348c5e221a9284f93291f1852e158dc407152c5bb5943cb8a532c2ae02521"
    "pt-PT"
  end
  language "pt-BR" do
    sha256 "258f7c5a27655bcb1e66d9839177dbd7e5ecb9c6a30856f640471d6821196726"
    "pt-BR"
  end
  language "rm" do
    sha256 "4735bdfa14592798b17d4bc42b3d36a4f1535d00959e0b8628c06e6f2238cbf8"
    "rm"
  end
  language "ro" do
    sha256 "5b8517c7ed7801a5a32fca2f2647166f051e1df99765b203577faa178feabcd6"
    "ro"
  end
  language "ru" do
    sha256 "cfec2c2c1727c277886ac2d11171630a00cf26dd61cf617e40e215c724aa5dc7"
    "ru"
  end
  language "sk" do
    sha256 "ad5dfb344d47d9cecc080baf564bfc871089d53b09cc240e02abafdcbcf33db0"
    "sk"
  end
  language "sl" do
    sha256 "729846888853d2b94e949c71e736f932083be417d42e1e35bf456e11d172b070"
    "sl"
  end
  language "sq" do
    sha256 "1235ab26adcd29f609043c8bebe2135674b787ef50fc4471e9c4bb8cef96bcbc"
    "sq"
  end
  language "sr" do
    sha256 "93c08f4bf22b08673d405c484853646b29640b7d52718fa946f2950158a77cf2"
    "sr"
  end
  language "sv" do
    sha256 "80a32094087872ea206b65bf0403edfbac81e5e2e4f2205abe74ac5f9495af79"
    "sv-SE"
  end
  language "th" do
    sha256 "05ed4f3a81345ff97964ec2a9fb86b9ec6248c2bdbe9da855071e79a2856928a"
    "th"
  end
  language "tr" do
    sha256 "715a8f0119ad85a79df2fd44c7664c140f87ce6f1e7fa09e167de54e40f89108"
    "tr"
  end
  language "uk" do
    sha256 "a23da9e95a5dafffd57dc51552b24d706eb2cd2803f1cbe72d7bbf5e7f4fd9d0"
    "uk"
  end
  language "uz" do
    sha256 "506cd1b29d26addaa3e298b3dd66deba36e549daf7be05c480d432a63bd61303"
    "uz"
  end
  language "vi" do
    sha256 "b7bab9d2569528eaec988ccc70082b4b5f61aaf86f18e13c5e1f8b0bdc469568"
    "vi"
  end
  language "zh-TW" do
    sha256 "255903c2d2caa0bef6e8cb40d7e1e63e920760737dfa9ba307745222ac31556c"
    "zh-TW"
  end
  language "zh" do
    sha256 "02e6995cc88761b498236a410a6d6b01e6bdc44ef0ab9cb5fb7b77ea7fc52d87"
    "zh-CN"
  end

  url "https://download-installer.cdn.mozilla.net/pub/thunderbird/releases/#{version}/mac/#{language}/Thunderbird%20#{version}.dmg",
      verified: "download-installer.cdn.mozilla.net/pub/thunderbird/"
  name "Mozilla Thunderbird"
  desc "Customizable email client"
  homepage "https://www.thunderbird.net/#{language}/"

  livecheck do
    url "https://product-details.mozilla.org/1.0/thunderbird_versions.json"
    strategy :json do |json|
      json["LATEST_THUNDERBIRD_VERSION"]
    end
  end

  auto_updates true
  conflicts_with cask: "thunderbird@esr"

  app "Thunderbird.app"

  zap trash: [
        "~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/org.mozilla.thunderbird*.sfl*",
        "~/Library/Caches/Mozilla/updates/Applications/Thunderbird*",
        "~/Library/Caches/Thunderbird",
        "~/Library/Preferences/org.mozilla.thunderbird*.plist",
        "~/Library/Saved Application State/org.mozilla.thunderbird*.savedState",
        "~/Library/Thunderbird",
      ],
      rmdir: "~/Library/Caches/Mozilla"
end
